﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="ExManager">
    <xs:complexType>
      <xs:sequence>
        <xs:element maxOccurs="unbounded" name="LogHandler">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="MsgType">
                <xs:complexType>
                  <xs:attribute name="Type" type="xs:string" use="required" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="Name" type="xs:string" use="required" />
            <xs:attribute name="ReturnMode" use="required" >
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:enumeration value="Exception"></xs:enumeration>
                  <xs:enumeration value="None"></xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="MsgMode" use="required">
              <xs:simpleType>
                <xs:restriction base ="xs:string">
                  <xs:enumeration value="None"></xs:enumeration>
                  <xs:enumeration value="Console"></xs:enumeration>
                  <xs:enumeration value="MessageBox"></xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            
          </xs:complexType>
        </xs:element>
      </xs:sequence>
      <xs:attribute name="ExDataSourceType" type="xs:string" use="required" />
    </xs:complexType>
  </xs:element>
</xs:schema>